Learn R Programming

CBTF (version 0.6.0)

[[.cbtf: Extract the results for a specific test input

Description

Extract the results for a specific test input

Usage

# S3 method for cbtf
[[(x, i)

Value

If the index is valid, a data frame containing the following columns and attributes:

res

One of "OK", "FAIL", "WARN" or "SKIP" for each combination of function and input tested (see the Value section in fuzz).

msg

The message received in case of error, warning or skip, or an empty string if no failure occurred.

attr(*, "what")

The character representation of the input tested.

Otherwise, FALSE.

Arguments

x

An object of class cbtf.

i

An index between 1 and the number of test inputs used.

Examples

Run this code
res <- fuzz(funs = c("list", "matrix", "mean"),
            what = test_inputs(c("numeric", "raw")))
res[[6]]

Run the code above in your browser using DataLab